<#assign className = table.className>
<#assign classNameFirstLower = table.classNameFirstLower>
package ${basepackage}.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ${basepackage}.dao.${className}Dao;
import ${basepackage}.model.${className}Entity;
import com.zy.ems.common.base.BaseDao;
import com.zy.ems.common.base.BaseService;

@Service
@Transactional
public class ${className}Service extends BaseService<${className}Entity, ${table.pkColumn.simpleJavaType}> {
    @Autowired
    private ${className}Dao ${classNameFirstLower}Dao;

    @Override
    public BaseDao<${className}Entity, ${table.pkColumn.simpleJavaType}> getEntityDao() {
        return this.${classNameFirstLower}Dao;
    }

}
